class CreateNewsOfferedMaterials < ActiveRecord::Migration
  def self.up
    create_table :news_offered_materials do |t|
      t.integer :reference_id
      t.string :reference_type
      t.references :material
      t.string :offer_type
      t.date :offer_date
      t.string :state

      t.timestamps
    end
  end

  def self.down
    drop_table :news_offered_materials
  end
end
